// 自动生成模板StudentProfile
package szzy
import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
)

// 学生档 结构体  StudentProfile
type StudentProfile struct {
    global.GVA_MODEL
    StudentID  string `json:"studentID" form:"studentID" gorm:"column:student_id;comment:学生唯一标识;" binding:"required"`  //学号 
    StudentName  string `json:"studentName" form:"studentName" gorm:"column:student_name;comment:学生姓名;" binding:"required"`  //姓名 
    Gender  string `json:"gender" form:"gender" gorm:"column:gender;comment:学生性别;" binding:"required"`  //性别 
    Age  *int `json:"age" form:"age" gorm:"column:age;comment:学生年龄;"`  //年龄 
    Class  string `json:"class" form:"class" gorm:"column:class;comment:学生所在班级;" binding:"required"`  //班级 
    Grade  string `json:"grade" form:"grade" gorm:"column:grade;comment:学生年级;" binding:"required"`  //年级 
    Phone  string `json:"phone" form:"phone" gorm:"column:phone;comment:学生联系电话;"`  //电话 
    Email  string `json:"email" form:"email" gorm:"column:email;comment:学生电子邮箱;"`  //邮箱 
    Address  string `json:"address" form:"address" gorm:"column:address;comment:学生住址;"`  //地址 
    Picture  string `json:"picture" form:"picture" gorm:"column:picture;comment:学生照片;"`  //照片 
}


// TableName 学生档 StudentProfile自定义表名 student_profiles
func (StudentProfile) TableName() string {
    return "student_profiles"
}

